package palms.messages;

import javax.crypto.spec.SecretKeySpec;

public class TicketSI extends PMessage {

	private static final long serialVersionUID = -6218516874419361213L;

	private String username;
	private String clientip;
	private long validity;
	private SecretKeySpec sessionkey;
	
	public TicketSI(String username, String ip, long validity, SecretKeySpec sessionkey) {
		super();
		this.username = username;
		this.clientip = ip;
		this.validity = validity;
		this.sessionkey = sessionkey;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getIp() {
		return clientip;
	}
	public void setIp(String ip) {
		this.clientip = ip;
	}
	public long getValidity() {
		return validity;
	}
	public void setValidity(long validity) {
		this.validity = validity;
	}
	public SecretKeySpec getSessionKey() {
		return sessionkey;
	}
	public void setSessionKey(SecretKeySpec sessionkey) {
		this.sessionkey = sessionkey;
	}
	
}
